package cn.edu.cdu;


public class Opponent {

    private String name;
    private String ip;
    private boolean chess;
    private int undoNum=3;

    public Opponent(String name, String ip, boolean chess) {
        this.name = name;
        this.ip = ip;
        this.chess = chess;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean isChess() {
        return chess;
    }

    public void setChess(boolean chess) {
        this.chess = chess;
    }

    public int getUndoNum() {
        return undoNum;
    }

    public void setUndoNum(int undoNum) {
        this.undoNum = undoNum;
    }
}
